<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{empty name="cateName"}资讯中心{else/}{$cateName}{/empty}-{$siteInfo.title}</title>
    <meta name="keywords" content="{$siteInfo.keyword}">
    <meta name="description" content="{$siteInfo.description}">
    <meta name="author" content="天年网络" />
    <link rel="stylesheet" href="/themes/default/static/element-ui-2.12/index.css">
    <link rel="stylesheet" href="/themes/default/static/css/common.css" />
    <link rel="stylesheet" href="/themes/default/static/css/detail.css" />
</head>
<style>

</style>
<body>
<div id="app">
    {include file="common/header" /}
    <div class="cate-top">
        <span class="cate-name-top">{$cateName}</span>
    </div>
    <div class="with1200 cate-list-top">
        <el-row>
            <a href="/news"><el-button type="primary" plain>所有分类({$allPostCount})</el-button></a>
            {volist name="cateList" id="vo"}
            <a href="/news/cate-{$vo.cate_id}.html"><el-button plain>{$vo.cate_name}({$vo.postCount})</el-button></a>
            {/volist}
        </el-row>
    </div>
    <div class="with1200 common-container">
        <div class="common-left">
            {volist name="list" id="vo"}
            <div class="article-item">
                <img src="{$vo.cover_image|default='/uploads/default/default_cover.jpg'}" />
                <div class="article-item-right" style="color: #999;">
                    <a href="/p/{$vo.id}.html"><h4>{$vo.title}</h4></a>
                    <el-tag effect="dark" type="danger">{$vo.cate.cate_name}</el-tag>
                    <i class="el-icon-user-solid"></i><span style="font-size: 12px;">{$vo.userInfo.username}</span>
                    <i class="el-icon-view"></i><span style="font-size: 12px;">&nbsp;{$vo.read_count}</span>
                    <p>{$vo.content|strip_tags|mb_substr=0,50}</p>
                </div>
            </div>
            <div class="hr"></div>
            {/volist}
            {$list|raw}
        </div>
        {include file="common/right" /}
    </div>
</div>
<!--页脚-->
{include file="common/footer" /}
</body>
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
<script src="/themes/default/static/element-ui-2.12/index.js"></script>
<script type="text/javascript" src="/themes/default/static/js/jquery-3.2.1.min.js" ></script>
<script src="https://cdn.bootcss.com/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="/themes/default/static/js/common.js" ></script>
<script>
    new Vue({
        el: '#app'
    })
</script>
</html>